package com.microservice.salmon.db.entities;

import java.util.Date;
import javax.persistence.*;

@Table(name = "t_shop_freights")
public class ShopFreight {
    /**
     * 自增ID
     */
    @Id
    private Integer id;

    /**
     * 店铺Id
     */
    @Column(name = "shop_id")
    private Integer shopId;

    /**
     * 市级Id
     */
    @Column(name = "region_id_2")
    private Integer regionId2;

    /**
     * 运费
     */
    private Integer freight;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 获取自增ID
     *
     * @return id - 自增ID
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置自增ID
     *
     * @param id 自增ID
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取店铺Id
     *
     * @return shop_id - 店铺Id
     */
    public Integer getShopId() {
        return shopId;
    }

    /**
     * 设置店铺Id
     *
     * @param shopId 店铺Id
     */
    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    /**
     * 获取市级Id
     *
     * @return region_id_2 - 市级Id
     */
    public Integer getRegionId2() {
        return regionId2;
    }

    /**
     * 设置市级Id
     *
     * @param regionId2 市级Id
     */
    public void setRegionId2(Integer regionId2) {
        this.regionId2 = regionId2;
    }

    /**
     * 获取运费
     *
     * @return freight - 运费
     */
    public Integer getFreight() {
        return freight;
    }

    /**
     * 设置运费
     *
     * @param freight 运费
     */
    public void setFreight(Integer freight) {
        this.freight = freight;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取更新时间
     *
     * @return update_time - 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置更新时间
     *
     * @param updateTime 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}